package testes;

import java.awt.EventQueue;
import java.net.InetAddress;

import javax.swing.SwingUtilities;

import servidor.rede.Conexao;

import cliente.rede.ConexaoCliente;

import gui.Gui;
import gui.telaCliente;
import gui.telaServidor;
import core.CoreGUI;
import core.RedeCore;
import core.RedeGUI;
import interfaces.InterfaceCoreGUI;
import interfaces.InterfaceRedeCore;
import interfaces.InterfaceRedeGUI;


public class NovoTesteTelaCliente {
	
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
		//EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					//inicializa tela cliente
					new telaCliente();
					telaCliente.frmCliente.setVisible(true);
					InetAddress ip = InetAddress.getByName("localhost");
					ConexaoCliente conexaocliente = new ConexaoCliente(ip, 5002);

					CoreGUI interfaceCoreGUI = new CoreGUI();
					interfaceCoreGUI.novoArquivoServidor("arquivo-cliente");
					
					Gui.update();
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}
	}
